package com.yanqu.road.logic.activity.evefeast.enums;

/**
 * 效果类型
 */
public enum eEveFeastBuffType {
    Type1(1, "消除物品，获得其雅趣值n1倍"),//物品数量|倍率千分比
    Type2(2, "拥有n1品质物品时每回合雅趣值加n3"),//品质|雅趣值增加固定值
    Type3(3, "场上每有n1个n2品质物品，获得n3雅趣值"),//数量|品质|雅趣值增加固定值
    Type4(4, "添加n1道具n2个"),//道具ID|数量
    Type5(5, "随机添加指定品质物品"),//品质|数量
    Type6(6, "获得n1刷新次数，n2移除次数"),//刷新次数|移除次数
    Type7(7, "随机添加n1类型道具n2个"),//类型|数量
    Type8(8, "n1类型道具每回合增加雅趣值n2"),//类型|雅趣值增加固定值
    Type9(9, "n1道具每回合增加雅趣值n2"),//道具ID|雅趣值增加固定值
    Type10(10, "n1道具增加n2倍雅趣值"),//道具ID|倍率千分比
    ;

    private int value;
    private String name;

    eEveFeastBuffType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static eEveFeastBuffType forValue(int value) {
        for (eEveFeastBuffType type : eEveFeastBuffType.values()) {
            if (type.getValue() == value) {
                return type;
            }
        }
        return null;
    }
}
